#header {
    color: white;
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    a {
        color: white; text-decoration: none;
        &:hover { color: darken(white, 15%); }
    }

    .sep { margin: 0 10px; color: darken($html-bg, 10%); }
    .nav, .menu {
        text-align: right;
        margin-right: 5px;
    }

    .menu {
        flex-grow: 2;
        display: none;
    }
    .menu ul.dropdown {
        right: 0;
        left: auto;
        min-width: 200px;
    }

    button {
        background: none;
        border: 0;
        padding: 10px 0;

        &.active {
            background: rgb(42, 79, 39);
            box-shadow: inset -2px 2px 4px 0px rgb(36, 61, 38);
        }

        img {
          vertical-align: top;
        }
    }

    .current-user-links {
        left: auto;
        right: 0;
        min-width: 200px;
    }
    #doc-links {
        left: auto;
        min-width: 150px;
    }
    form.search {
        display: flex;
        flex-grow: 1;
    }
    @media only screen and (max-width: 820px) {
        form.search { display: none; }
    }
    @media only screen and (max-width: 900px) {
        .menu { display: block; }
        .nav { display: none; }
    }
}

#header input.search, #mobile-search input.search {
    font-size: 90%;
    border: none;
    color: black;
    margin-left: 30px;
    padding: 5px 5px 5px 25px;
    background-color: white;
    background-image: url('/assets/search.png');
    background-repeat: no-repeat;
    background-position: 6px 6px;
    background-size: 14px 15px;
    border-radius: 15px;
}

#header input.search {
    width: 100%;
    margin-left: 16px;
    margin-right: 16px;
}

#mobile-search {
    display: none;
    margin-bottom: 10px;
    margin-left: 5px;
    margin-right: 5px;
    input.search {
        width: 100%;
        margin: 0;
    }
    @media only screen and (max-width: 820px) {
        display: block;
    }
}
